package com.langsotech.studio.service.presentation.my;
import java.util.List;
import java.util.Map;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.ecore.xmi.XMLHelper;
import org.eclipse.emf.ecore.xmi.impl.XMISaveImpl;
public class BasicXMISaveImpl extends XMISaveImpl{
	  public BasicXMISaveImpl(XMLHelper helper)
	  {
	    super(helper);
	  }
	  public BasicXMISaveImpl(Map<?, ?> options, XMLHelper helper, String encoding)
	  {
		  super(options, helper, encoding, "1.0");
	  }
	  public BasicXMISaveImpl(Map<?, ?> options, XMLHelper helper, String encoding, String xmlVersion)
	  {
	    super(options, helper, encoding, xmlVersion);
	  }
	  public void traverse(List<? extends EObject> contents)
	  {
	    if (!toDOM && declareXML)
	    {
	      doc.add("<?xml version=\"" + xmlVersion + "\" encoding=\"" + encoding + "\"?>");
	      doc.addLine();
	    }
	    int size = contents.size();
	    Object mark;
	    if (size == 1)
	    {
	      mark = writeTopObject(contents.get(0));
	    }
	    else
	    {
	      mark = writeTopObjects(contents);
	    }
	    if (!toDOM)
	    {
	      doc.resetToMark(mark);
	    }
	    else
	    {
	      currentNode = document.getDocumentElement();
	    }
	    addDoctypeInformation();
	  }
}
